package loveqq.niceexcel.annotation.format;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.math.RoundingMode;

/**
 * 数字格式化
 *
 * @author zhongjh@tsintergy.com
 * @date 2022-08-26
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface NumberFormat {
    /**
     * 格式参考 {@link java.text.NumberFormat}
     */
    String value();
    /**
     * 舍入模式
     */
    RoundingMode roundingMode() default RoundingMode.HALF_UP;
}
